﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ZakaNovo1.aspx.vb" Inherits="ZakaFrontEnd.ZakaNovo" %>

<%@ Register Assembly="obout_Flyout2_NET" Namespace="OboutInc.Flyout2" TagPrefix="cc5" %>
<%@ Register Assembly="obout_ComboBox" Namespace="Obout.ComboBox" TagPrefix="cc3" %>
<%@ Register Assembly="obout_Grid_NET" Namespace="Obout.Grid" TagPrefix="cc2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="obout_Interface" Namespace="Obout.Interface" TagPrefix="cc4" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Cromos Da Bola</title>
    <script type="text/javascript">

        function pageLoad() {
        }
    
    </script>
    <link href="layout.css" rel="stylesheet" type="text/css" />
    <link href="default.css" rel="stylesheet" type="text/css" />
    <link rel="shortcut icon" href="../images/favicon.ico" />
    <link rel="icon" type="image/gif" href="/images/animated_favicon1.gif" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
    </div>
    <div id="wrapper">
        <div id="header">
            <h1>
                Cromos Da Bola
            </h1>
        </div>
        <div id="main-menu">
            <ul>
                <li class="first">
                    <asp:Label ID="lblBV" runat="server" Text="Bem Vindo," ForeColor="White"></asp:Label>
                    <asp:LoginName ID="LoginName1" runat="server" ForeColor="White" />
                    &nbsp;&nbsp;&nbsp; </li>
                <li>
                    <asp:HyperLink ID="lnkPessoal" runat="server" NavigateUrl="~/Template1/ZakaPessoal1.aspx"
                        ToolTip="Vai para a área Pessoal">Pessoal</asp:HyperLink></li>
                <li>
                    <asp:LoginStatus ID="LoginStatus1" runat="server" LogoutPageUrl="~/ZakaLogin.aspx"
                        LogoutAction="RedirectToLoginPage" />
                </li>
            </ul>
        </div>
        <div id="content">
            <div id="left">
                <h2 class="bigger">
                    Rank</h2>
                <div>
                    <%-- <cc2:Grid ID="grdRank" runat="server" AllowAddingRecords="False" AutoGenerateColumns="False"
                        Width="50%" AllowPageSizeSelection="False" AllowRecordSelection="False">
                        <Columns>
                            <cc2:Column Index="0" Width="120px" DataField="NomeUtilizador" HeaderText="Nome"
                                SortExpression="NomeUtilizador">
                                <TemplateSettings TemplateId="GridTemplate2" />
                            </cc2:Column>
                            <cc2:Column Index="1" Width="100px" DataField="Vitorias" HeaderText="Vitorias" SortExpression="Vitorias">
                            </cc2:Column>
                            <cc2:Column Index="2" Width="100px" DataField="Empates" HeaderText="Empates" SortExpression="Empates">
                            </cc2:Column>
                            <cc2:Column Index="3" Width="100px" DataField="Derrotas" HeaderText="Derrotas" SortExpression="Derrotas">
                            </cc2:Column>
                            <cc2:Column Index="4" Width="100px" DataField="Pontos" HeaderText="Pontos" SortExpression="Pontos">
                            </cc2:Column>
                            <cc2:Column HeaderText="Pontos" Index="4" DataField="Pontos" SortExpression="Pontos">
                            </cc2:Column>
                        </Columns>
                        <Templates>
                            <cc2:GridTemplate ID="GridTemplate2" runat="server">
                                <Template>
                                    <u><b>
                                        <%#Container.Value%>
                                    </b></u>
                                </Template>
                            </cc2:GridTemplate>
                        </Templates>
                    </cc2:Grid>--%>
                    <asp:GridView ID="gvRank" runat="server" AutoGenerateColumns="False" Width="100%"
                        CellPadding="4" ForeColor="#333333" GridLines="None" AllowPaging="True">
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <Columns>
                            <asp:BoundField ItemStyle-Font-Bold="true" ItemStyle-Font-Underline="true" DataField="NomeUtilizador"
                                HeaderText="Nome" SortExpression="NomeUtilizador" />
                            <asp:BoundField DataField="Vitorias" HeaderText="Vitorias" SortExpression="Vitorias" />
                            <asp:BoundField DataField="Empates" HeaderText="Empates" SortExpression="Empates" />
                            <asp:BoundField DataField="Derrotas" HeaderText="Derrotas" SortExpression="Derrotas" />
                            <asp:BoundField ItemStyle-Font-Bold="true" DataField="Pontos" HeaderText="Pontos"
                                SortExpression="Pontos" />
                        </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerSettings Mode="NextPrevious" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                </div>
                <div class="hr1">
                    <hr />
                </div>
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
                        <h2>
                            Jogos</h2>
                        <div>
                            <%-- <cc2:Grid ID="grdJogos" runat="server" AllowAddingRecords="False" AllowPageSizeSelection="False"
                                AllowMultiRecordSelection="false" AutoPostBackOnSelect="true" AutoGenerateColumns="False"
                                Width="50%" OnSelect="Selected">
                                <Columns>
                                    <cc2:Column DataField="Data" HeaderText="Data" Index="1" SortExpression="Data" Width="110px"
                                        DataFormatString="{0:dd-MMM-yyyy}">
                                    </cc2:Column>
                                    <cc2:Column DataField="Resultado" HeaderText="Resultado" Index="2" SortExpression="Resultado"
                                        Width="100px">
                                    </cc2:Column>
                                    <cc2:Column DataField="MVP" HeaderText="MVP" Index="3" Width="130px">
                                        <TemplateSettings TemplateId="MVP" />
                                    </cc2:Column>
                                    <cc2:Column DataField="IDJogos" HeaderText="" Index="4" SortExpression="IDJogos"
                                        Width="120px" Visible="false">
                                        <TemplateSettings TemplateId="GridTemplate1" />
                                    </cc2:Column>
                                    <cc2:Column Visible="false">
                                        <TemplateSettings TemplateId="lupa" />
                                    </cc2:Column>
                                </Columns>
                                <Templates>
                                    <cc2:GridTemplate ID="MVP" runat="server">
                                        <Template>
                                            <u><b>
                                                <%#Container.Value%>
                                            </b></u>
                                        </Template>
                                    </cc2:GridTemplate>
                                    <cc2:GridTemplate ID="GridTemplate1" runat="server">
                                        <Template>
                                            <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Container.Value%>'
                                                Text="Equipas">
                                            </asp:LinkButton>
                                        </Template>
                                    </cc2:GridTemplate>
                                    <cc2:GridTemplate runat="server" ID="lupa">
                                        <Template>
                                            <asp:Image ID="Image1" runat="server" ImageUrl="~/images/magglass.jpg" />
                                            <cc1:PopupControlExtender ID="Image1_PopupControlExtender" runat="server" DynamicServiceMethod="GetDynamicContent"
                                                DynamicContextKey='<%# Eval("IDJogos") %>' DynamicControlID="Panel1" TargetControlID="Image1"
                                                PopupControlID="Panel1" Position="Right">
                                            </cc1:PopupControlExtender>
                                        </Template>
                                    </cc2:GridTemplate>
                                </Templates>
                            </cc2:Grid>--%>
                            <asp:GridView ID="gvJogos" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                Width="100%" ForeColor="#333333" AllowPaging="True" PageSize="5" GridLines="None">
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                <Columns>
                                    <asp:BoundField DataField="IDJogos" HeaderText="IDJogos" SortExpression="IDJogos"
                                        Visible="False" />
                                    <asp:BoundField DataField="Data" HeaderText="Data" SortExpression="Data" DataFormatString="{0:d}" />
                                    <asp:BoundField DataField="Resultado" HeaderText="Resultado" SortExpression="Resultado" />
                                    <asp:BoundField ItemStyle-Font-Bold="true" ItemStyle-Font-Underline="true" DataField="MVP"
                                        HeaderText="MVP" SortExpression="MVP" />
                                    <%--  <asp:TemplateField>
                                            <ItemTemplate>
                                         <asp:Image ID="Image1" runat="server" ImageUrl="~/images/magglass.jpg" />
                                             <cc1:PopupControlExtender ID="Image1_PopupControlExtender" runat="server" DynamicServiceMethod="GetDynamicContent"
                                                    DynamicContextKey='<%# Eval("IDJogos") %>' DynamicControlID="Panel1" TargetControlID="Image1"
                                                    PopupControlID="Panel1" Position="Right">
                                                </cc1:PopupControlExtender>
                                            </ItemTemplate>
                                        </asp:TemplateField>--%>
                                </Columns>
                                <EditRowStyle BackColor="#999999" />
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                            </asp:GridView>
                        </div>
                        <asp:Panel ID="PanelContainer" runat="server" Style="width: 170px;" BorderStyle="Solid">
                            <asp:Panel ID="PanelHeader" BackColor="White" runat="server" Style="width: 100%;
                                height: 100%; border-bottom-style: solid">
                                <table width="100%">
                                    <tr>
                                        <td style="text-align: center; font-weight: bold;">
                                            <div style="text-align: center; font-weight: bold;">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equipas
                                            </div>
                                        </td>
                                        <td align="right">
                                            <asp:LinkButton ID="lnkFechar" runat="server" Font-Underline="false">X</asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="PanelBody" runat="server" BackColor="White" Style="width: 100%; height: 100%;">
                                <table width="99%">
                                    <tr>
                                        <td>
                                            <u><b>Equipa A</b></u>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:GridView ID="gvEquipaA" runat="server" GridLines="None" AutoGenerateColumns="False"
                                                ShowHeader="false">
                                                <Columns>
                                                    <asp:BoundField DataField="NomeUtilizador" ShowHeader="False" />
                                                </Columns>
                                                <EmptyDataTemplate>
                                                    Equipa não definida...
                                                </EmptyDataTemplate>
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <u><b>Equipa B</b></u>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:GridView ID="gvEquipaB" runat="server" GridLines="None" AutoGenerateColumns="False"
                                                ShowHeader="false">
                                                <Columns>
                                                    <asp:BoundField DataField="NomeUtilizador" ShowHeader="False" />
                                                </Columns>
                                                <EmptyDataTemplate>
                                                    Equipa não definida...
                                                </EmptyDataTemplate>
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </asp:Panel>
                        <cc1:AlwaysVisibleControlExtender ID="ace" runat="server" TargetControlID="PanelContainer"
                            VerticalSide="Bottom" VerticalOffset="10" HorizontalSide="Right" HorizontalOffset="10"
                            ScrollEffectDuration=".1" />
                        <cc1:AnimationExtender ID="AnimationExtender2" runat="server" TargetControlID="lnkFechar">
                            <Animations>
                                <OnClick>
                                    <Sequence AnimationTarget="PanelContainer">
                                    <Parallel AnimationTarget="PanelContainer" Duration="0.7" Fps="20">
                                    <Move Horizontal="0" Vertical="-50"></Move>
                                    <Scale ScaleFactor="0.05" FontUnit="px" />                                  
                                    <FadeOut />
                                    </Parallel>
                                    <StyleAction Attribute="display" Value="none"/>
                                    <StyleAction Attribute="height" Value=""/>
                                    <StyleAction Attribute="width" Value="400px"/>
                                    <StyleAction Attribute="fontSize" Value="14px"/>
                                    <EnableAction AnimationTarget="lnkFechar" Enabled="true" />
                                    </Sequence>
                                </OnClick>
                            </Animations>
                        </cc1:AnimationExtender>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </div>
        <div id="right">
            <h2>
                Trofeus</h2>
            <%-- <cc2:Grid ID="grdTrofeus" runat="server" AllowAddingRecords="False" AllowPageSizeSelection="False"
                AllowRecordSelection="False" AutoGenerateColumns="False" Width="50%" AllowPaging="False"
                AllowSorting="False">
                <Columns>
                    <cc2:Column DataField="IDTrofeu" HeaderText="ID" Index="0" SortExpression="IDTrofeu"
                        Width="120px" Visible="false">
                    </cc2:Column>
                    <cc2:Column DataField="NomeTrofeu" HeaderText="Nome" Index="1" SortExpression="NomeTrofeu"
                        Width="110px">
                    </cc2:Column>
                    <cc2:Column DataField="Vencedor" HeaderText="Vencedor" Index="2" SortExpression="Vencedor"
                        Width="110px">
                    </cc2:Column>
                </Columns>
            </cc2:Grid>--%>
            <asp:GridView ID="gvTrofeus" runat="server" AutoGenerateColumns="False" Width="200px"
                CssClass="teste" GridLines="None" CellPadding="4" ForeColor="#333333">
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                <Columns>
                    <asp:BoundField DataField="IDTrofeu" HeaderText="ID" Visible="False" />
                    <asp:BoundField DataField="NomeTrofeu" HeaderText="Nome" />
                    <asp:TemplateField HeaderText="Vencedor">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Font-Bold="true" Font-Underline="true" Text='<%#Activo(Eval("Vencedor")) %>'>'</asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EditRowStyle BackColor="#999999" />
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
            </asp:GridView>
            <hr class="hr1" />
            <h2>
                Votações
            </h2>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <h3>
                        Votação MVP
                    </h3>
                    <table>
                        <tr>
                            <td>
                                <%--  <cc3:ComboBox ID="cmbListaJogos" runat="server" AutoPostBack="true">
                                </cc3:ComboBox>--%>
                                <asp:DropDownList ID="ddlListaJogos" runat="server" AutoPostBack="True">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%--   <cc3:ComboBox ID="cmbVotaMVP" runat="server">
                                </cc3:ComboBox>--%>
                                <asp:DropDownList ID="ddlVotaMVP" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%-- <cc1:ConfirmButtonExtender ID="btnSubmeter_ConfirmButtonExtender" runat="server"
                                    ConfirmText="De certeza?" Enabled="True" TargetControlID="btnSubMVP">
                                </cc1:ConfirmButtonExtender>
                                <cc4:OboutButton ID="btnSubMVP" runat="server" Text="Submeter">
                                </cc4:OboutButton>--%>
                                <asp:Button ID="btnSubmeter" runat="server" Text="Submeter" />
                                <cc1:ConfirmButtonExtender ID="btnSubmeter_ConfirmButtonExtender" runat="server"
                                    ConfirmText="De certeza?" Enabled="True" TargetControlID="btnSubmeter">
                                </cc1:ConfirmButtonExtender>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <h3>
                        Votação Troféus
                    </h3>
                    <table>
                        <tr>
                            <td>
                                <%-- <cc3:ComboBox ID="cmbListaTrofeus" runat="server" AutoPostBack="true">
                                </cc3:ComboBox>--%>
                                <asp:DropDownList ID="ddlListaTrofeus" runat="server" AutoPostBack="True">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%-- <cc3:ComboBox ID="cmbTrofeu" runat="server">
                                </cc3:ComboBox>--%>
                                <asp:DropDownList ID="ddlTrofeu" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%-- <cc1:ConfirmButtonExtender ID="btnSubmeterTrofeu_ConfirmButtonExtender" runat="server"
                                    ConfirmText="De certeza?" Enabled="True" TargetControlID="btnSubTrof">
                                </cc1:ConfirmButtonExtender>
                                <cc4:OboutButton ID="btnSubTrof" runat="server" Text="Submeter">
                                </cc4:OboutButton>--%>
                                <asp:Button ID="btnSubmeterTrofeu" runat="server" Text="Submeter" />
                                <cc1:ConfirmButtonExtender ID="btnSubmeterTrofeu_ConfirmButtonExtender" runat="server"
                                    ConfirmText="De certeza?" Enabled="True" TargetControlID="btnSubmeterTrofeu">
                                </cc1:ConfirmButtonExtender>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
            <hr class="hr1" />
            <h2>
                Regras
            </h2>
            <p>
                O sistema de pontuação é feito da seguinte maneira:
            </p>
            <ul>
                <li>Vitoria = 3 Pontos</li>
                <li>Empate = 1 Ponto</li>
                <li>Derrota = 0 Pontos</li>
                <li>MVP = 1 Ponto</li>
            </ul>
        </div>
        <%--<br />
        <br />
        <div class="hr1">
            <hr />
        </div>--%>
        <div id="footer">
            <div class="hr1">
                <hr />
            </div>
            <br />
            <p>
                Copyright @ 2010 Cromos da Bola. All Rights Reserved. Designed by JP</p>
        </div>
    </div>
    </form>
</body>
</html>
